import { post } from "utils/fetch";

// 通知主题列表查询
export const getNoticeThemeList = (data) => {
  return post(`/flow-platform/notice/listNoticeSettings`, data);
};

// 消息主题列表查询
export const getMsgThemeType = () => {
  return post(`/flow-platform/notice/msgThemType`);
};

// 通知主题列表
export const getNoticeThemeType = () => {
  return post(`/flow-platform/notice/noticeThemType`);
};

// 通知新增
export const addNotice = (data) =>
  post(`/flow-platform/notice/listAdd`, data, { messageType: "close" });

// 通知编辑
export const editNotice = (data) =>
  post(`/flow-platform/notice/listUpdate`, data, { messageType: "close" });

// 状态启用
export const startStatus = (data) =>
  post(`/flow-platform/notice/channel/startStatus`, data, {
    messageType: "close",
  });
